﻿//----------------------------------------------------------------
// Desc: 
// Edit: ShowLong, http://blog.csdn.net/showlong
//
// Date Created: 2009-10-13
//
// Copyright (c) Fuel4D (http://www.fuel4d.com), All rights reserved.
//
//----------------------------------------------------------------
#pragma once

//----------------------------------------------------------------
//
//----------------------------------------------------------------
FINLINE fuFontGroup* FUIWidgetManager::GetFont(WORD index)
{
    if (index >= 0 && index < (WORD)vFontGroup.size())
        return &vFontGroup[index];
    if (vFontGroup.empty())
        return 0;
    return &vFontGroup[0];
}
FINLINE WORD FUIWidgetManager::GetFontCount()
{ 
    return (WORD)vFontGroup.size(); 
}
FINLINE fuMenuGroup* FUIWidgetManager::GetMenuData(BYTE index)
{
    if (index >= 0 && index < (BYTE)vMenuGroup.size())
        return &vMenuGroup[index];
    if (vMenuGroup.empty())
        return 0;
    return &vMenuGroup[0];
}
FINLINE BYTE FUIWidgetManager::GetMenuCount()
{
    return (BYTE)vMenuGroup.size(); 
}